package com.example.smartcity1.network;

import com.example.smartcity1.bean.HospitalBannerBean;
import com.example.smartcity1.bean.HospitalListBean;
import com.example.smartcity1.bean.HospitalPageBean;
import com.example.smartcity1.bean.MsgCodeBean;
import com.example.smartcity1.bean.ParklotListBean;
import com.example.smartcity1.bean.ParklotOldListBean;
import com.example.smartcity1.bean.ParklotPageBean;
import com.example.smartcity1.bean.PatientClassListBean;
import com.example.smartcity1.bean.PatientListBean;
import com.example.smartcity1.bean.PatientNewPostBean;
import com.example.smartcity1.bean.PatientOrderPostBean;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ServiceService {
    //医院列表
    @GET("/userinfo/registration/list")
    Call<HospitalListBean> getHospitalListData();
    //医院信息
    @GET("http://124.93.196.45:10002/userinfo/registration/{id}")
    Call<HospitalPageBean> getHospitalPageData(@Path("id") int id);
    //医院轮播图
    @GET("/userinfo/img/list")
    Call<HospitalBannerBean> getHospitalBannerData(@Header("Authorization") String token, @Query("hospitalId") int hospitalId);
    //病人列表
    @GET("/userinfo/patient/list")
    Call<PatientListBean> getPatientListData(@Header("Authorization") String token, @Query("userId") String userId);
    //添加病人
    @POST("/userinfo/patient")
    Call<MsgCodeBean> getPatientNewData(@Header("Authorization") String token, @Body PatientNewPostBean patientNewPostBean);
    //科室列表
    @GET("/userinfo/types/list")
    Call<PatientClassListBean> getPatientClassListData(@Header("Authorization") String token, @Query("did") int did);
    //添加预约
    @POST("/userinfo/order")
    Call<MsgCodeBean> getPatientOrderData(@Header("Authorization") String token, @Body PatientOrderPostBean patientOrderPostBean);

    //查询停车场列表
    @GET("/userinfo/parklot/list?pageSize=6")
    Call<ParklotListBean> getParklotListData(@Query("pageNum") int pageNum);

    //查询停车场详情
    @GET("/userinfo/parklot/{id}")
    Call<ParklotPageBean> getParklotPageData(@Path("id") int id);

    //停车场历史
    @GET("/userinfo/parkrecord/list?pageSize=6")
    Call<ParklotOldListBean> getParklotOldListData(@Query("pageNum") int pageNum,@Query("entryTime") String entryTime, @Query("outTime") String outTime);

}
